package Application.Controller;

import Application.AppJoint;
import Application.Layer.Layer;
import Application.Layer.LayerDelegate;
import javafx.fxml.FXML;
import javafx.scene.layout.VBox;

import java.util.ArrayList;

public class SaveDialogController extends Controller{
    @FXML public void dontSaveOnAction(){
        AppJoint.getInstance().clearAll();
        getLocalStage().close();
        getMain().showNewCanvasWindow();
    }

    @FXML public void cancleOnAction(){
        getLocalStage().close();
    }

    @FXML public void saveOnAction(){
        AppJoint.getInstance().getMainWindowController().savePicOnAction();
        getLocalStage().close();
    }
}
